package com.jiang.service.Impl;

import com.jiang.bean.Classno;
import com.jiang.dao.ClassDao;
import com.jiang.service.ClassnoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ClassnoServiceImpl implements ClassnoService {

    @Resource
    ClassDao classDao;


    @Override
    public int getCountclass(String classnum, String college, String headmaster) {
        return classDao.getCountclass(classnum,college,headmaster);
    }

    @Override
    public List<Classno> getAllClassno(String classnum, String college, String headmaster,int pageStart,int pageSize) {
        return classDao.getAllClassno(classnum,college,headmaster,pageStart,pageSize);
    }

    @Override
    public Classno selectById(int id) {
        return classDao.selctByid(id);
    }

    @Override
    public int deleteClassno(int id) {
        return classDao.deleteClassno(id);
    }

    @Override
    public int updataClassno(Classno classno) {
        return classDao.updataClassno(classno);
    }

    @Override
    public int addClassno(Classno classno) {
        return classDao.addClassno(classno);
    }
}
